import myfetch from "./myfetch"
import userApi from "./user"
/**
 * Gitee文件上传
 * @param fileName 文件名
 * @param content Base64内容
 * @param msgid 稿子ID
 * @param msgtype 稿子类型
 * @returns 
 */
export const giteeUpload = (fileName: string, content: string, msgid: string, msgtype: string) => {
    return myfetch.mypost("/file/Pupload", { fileName, msgid, msgtype, fromid: userApi.getMyInfo().id || '' }, { content })
}

